import request from '@/utils/request.js'
var group_name = 'comment'

export default {
	// 根据博客id查询评论
	getCommentByBlog(blogId) {
		return request({
			url: `/${group_name}/getByBlog/${blogId}`,
			method: 'get'
		})
	},
	// 添加评论
	save(comment) {
		return request({
			url: `/${group_name}/save`,
			method: 'post',
			data: comment
		})
	}
}
